package com.example.mylearn.designPattern.chainOfResponsibility.learn1;

public class SIngApplication {


    public static void main(String[] args) {

        LearnSing learnSing = new LearnSing();
        SelectSong selectSong = new SelectSong();
        StartSing startSing = new StartSing();


        learnSing.setNext(selectSong);
        selectSong.setNext(startSing);

        learnSing.process(new SingaSong());


    }


}
